package com.ygqh.baby.service;

import java.util.List;

import com.ygqh.baby.ao.Message;
import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.ao.ResultSet;
import com.ygqh.baby.po.YgFunnyVideo;

public interface YgFunnyVideoService {

	List<YgFunnyVideo> find();

	int findCount();

	YgFunnyVideo findById(Long id);

	int deleteSoft(Long[] ids);

	int deleteSoft(Long id);

	int save(YgFunnyVideo ygFunnyVideo);

	int update(YgFunnyVideo ygFunnyVideo);

	int saveOrUpdate(YgFunnyVideo ygFunnyVideo);

	ResultSet<YgFunnyVideo> search(QueryInfo queryInfo, String q);

	Message addFunnyVideo(String title, String videoUrl, String imgPath, Long userId, String remark);

	Message pointPraise(Long videoId, String openId, String nickName, String headUrl);

	Message cancelPraise(Long videoId, String userNameOrOpenId);

	List<YgFunnyVideo> findVideoList(QueryInfo queryInfo, Long userId);

}
